package com.example.xm.mapper;

import com.example.xm.Entity.Commodity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CoyMapper {
    /**获取*/
    public List<Commodity> getCoy(Commodity commodity);

    /**分页*/
    public List<Commodity> selectPager();

    /**删除*/
    public int del(String id);

    /**根据id获取学生对象*/
    public Commodity getCoyId(String id);

    /**添加*/
    public int Add(Commodity commodity);
    /**添加到购物车*/
    public int AddGwc(Commodity commodity);
    /**修改*/
    public  int Update(Commodity commodity);
}
